{include file="public/_meta" /}
<link href="__PUBLIC_ADMIN__css/plugins/iCheck/custom.css" rel="stylesheet">
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox-title">
                        <h5>设置</h5>
                    </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                    	 <form action="{:url('admin/world/config_edit')}" method="post" class="form-horizontal" enctype="multipart/form-data">
                    	 	<div class="col-md-12">
							    <div class="form-group">
							        <label class="col-sm-3 control-label">分享按钮是否启动：</label>
							        <div class="col-sm-4">
							        <label class="radio-inline">
							            <input id="r3" type="radio" value="1" name="home_page" {if condition="$res.home_page eq 1"} checked="checked"{else}{/if}>开启</input>  
							            </label>
							            <label class="radio-inline">
										<input id="r4" type="radio" value="0" name="home_page" {if condition="$res.home_page eq 0"} checked="checked"{else}{/if}>关闭</input> 
										</label>
										
							        </div>
							    </div>
							</div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">分享标题：</label>
                                <div class="col-sm-5">
                                    <input name="share_title" class="form-control" type="text" value="{$res.share_title}">
                                </div>
                            </div>
                            <div class="form-group">
								<label class="col-sm-3 control-label">分享图片：</label>
								<div class="col-sm-5">
									<div class="up">
										<input placeholder="" name="file" class="one" type="file">
										<div id="preview1">
											<img src="/{$res.share_img}" alt="">
										</div>
									</div>
								</div>
							</div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-8 col-sm-offset-3">
                                    <button class="btn btn-primary" type="submit">提交</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

    {include file="public/_footer" /}
	
    <!-- 自定义js -->
    <script src="__PUBLIC_ADMIN__js/content.js?v=1.0.0"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC_ADMIN__utf8-php/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC_ADMIN__utf8-php/ueditor.all.min.js"></script>
    <!-- iCheck -->
    <script src="__PUBLIC_ADMIN__js/plugins/iCheck/icheck.min.js"></script>
    
    <script>
        $(document).ready(function() {
        	$('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            });
			
            $('.refresh').click(function(){
            	//window.location.reload();	// 刷新页面
            })
		});
	</script>

</body>
</html>
